.mock-exam-panel {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  min-height: 600px;
  position: relative;
}

/* 选择阶段 */
.exam-select {
  text-align: center;
}

.exam-select h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 2rem;
}

.exam-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.exam-option-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.exam-option-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
}

.exam-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.exam-option-card h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.exam-option-card p {
  color: #666;
  margin: 0.5rem 0;
}

.exam-desc {
  font-size: 0.9rem;
  color: #999;
  margin-top: 1rem;
}

/* 答题阶段 */
.exam-taking {
  width: 100%;
}

.exam-header {
  background: white;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.exam-progress {
  flex: 1;
  margin-right: 2rem;
}

.exam-progress span {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: width 0.3s ease;
}

.exam-timer {
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
  min-width: 80px;
  text-align: right;
}

.timer-warning {
  color: #f44336;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.exam-question-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.question-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
}

.question-category,
.question-difficulty {
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
}

.question-category {
  background: #e3f2fd;
  color: #1976d2;
}

.question-difficulty {
  background: #fff3e0;
  color: #f57c00;
}

.question-content {
  margin-bottom: 2rem;
}

.question-content h3 {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #333;
}

.question-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.option-button {
  padding: 1rem 1.5rem;
  border: 2px solid #e0e0e0;
  background: white;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  color: #333;
}

.option-button:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.option-button.selected {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  font-weight: 600;
}

.exam-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 2px solid #f0f0f0;
}

.nav-button {
  padding: 0.75rem 2rem;
  border: 2px solid #667eea;
  background: white;
  color: #667eea;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-button:hover:not(:disabled) {
  background: #667eea;
  color: white;
}

.nav-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.nav-button.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
}

.nav-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.nav-info {
  color: #666;
  font-size: 0.9rem;
}

/* 结果阶段 */
.exam-result {
  width: 100%;
}

.stage-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  color: white;
  margin-bottom: 2rem;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.stage-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.stage-card h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.stage-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.score-value {
  font-size: 4rem;
  font-weight: 700;
}

.score-label {
  font-size: 1.5rem;
  opacity: 0.9;
}

.stage-description {
  font-size: 1.1rem;
  margin: 1rem 0;
  opacity: 0.95;
}

.stage-advice {
  font-size: 1rem;
  margin-top: 1rem;
  opacity: 0.9;
  font-style: italic;
}

.result-details {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.result-details h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1.5rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: #f5f5f5;
  border-radius: 8px;
}

.detail-label {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.detail-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
}

.weak-subjects,
.strong-subjects {
  margin-top: 1.5rem;
}

.weak-subjects h4,
.strong-subjects h4 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 1rem;
}

.subject-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.subject-item {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  display: flex;
  gap: 0.5rem;
}

.subject-item.weak {
  background: #ffebee;
  color: #c62828;
}

.subject-item.strong {
  background: #e8f5e9;
  color: #2e7d32;
}

.recommendations {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #f0f0f0;
}

.recommendations h4 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 1rem;
}

.recommendations ul {
  list-style: none;
  padding: 0;
}

.recommendations li {
  padding: 0.5rem 0;
  color: #666;
  line-height: 1.6;
}

.recommendations li::before {
  content: '💡 ';
  margin-right: 0.5rem;
}

.result-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.action-button {
  padding: 1rem 2.5rem;
  border: 2px solid #667eea;
  background: white;
  color: #667eea;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 150px;
}

.action-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.action-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.action-button.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f0f0f0;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .exam-options {
    grid-template-columns: 1fr;
  }

  .exam-header {
    flex-direction: column;
    gap: 1rem;
  }

  .exam-progress {
    margin-right: 0;
    width: 100%;
  }

  .exam-navigation {
    flex-direction: column;
    gap: 1rem;
  }

  .result-actions {
    flex-direction: column;
  }
}

